<!DOCTYPE html>

<html>
<head>
	<link rel="stylesheet" href="../../../themes/themeroller/maemo5-theme/ui.all.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../../../themes/nokia/ext-theme/maemo5/800x480/custom.css" type="text/css" media="screen" />

	<script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>

	<script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>
	
	<style type="text/css" media="screen">
		body {
			font-size: 14px;
			font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
			padding: 10px;
		}
	</style>
	
</head>

<body>
	
	<input type="checkbox" name="check1" value="" id="check1" />
	<input type="checkbox" name="check2" value="" id="check2" />
	
	<script type="text/javascript" charset="utf-8">
	
		var init = function() {
				
			var check1 = new Nokia.CheckBox({
				element: '#check1',
				label: 'testing checkbox 1',
				wrapper: 'div',
				create: function() {
					console.log('Checkbox: Create');
				},
				check: function(event) {
					console.log('Checkbox: Check', this, event);
				},
				uncheck: function(event) {
					console.log('Checkbox: Uncheck', this, event);
				},
				push: function(event) {
					console.log('Checkbox: Push', this, event);
				},
				toggle: function(event) {
					console.log('Checkbox: Toggle', this, event);
				}
			});
	
			var check2 = new Nokia.CheckBox({
				element: '#check2',
				checked: true,
				label: 'testing checkbox 2',
				wrapper: 'div',
				create: function() {
					console.log('Checkbox: Create');
				},
				check: function(event) {
					console.log('Checkbox: Check', this, event);
				},
				uncheck: function(event) {
					console.log('Checkbox: Uncheck', this, event);
				},
				push: function(event) {
					console.log('Checkbox: Push', this, event);
				},
				toggle: function(event) {
					console.log('Checkbox: Toggle', this, event);
				}
			});
	
			/*
			 * Hide splash when its all done.
			*/
			
			Nokia.hideSplash();
		};
		
		/*
		 * Show splash while loading components.
		*/
			
		Nokia.showSplash('<span>loading</span>');
		
		Nokia.use('checkbox', init);
	
	</script>

</body>
</html>